package com.example.teamwork3.Control;

import com.example.teamwork3.Model.Kselectsub;
import com.example.teamwork3.Service.KselectsubService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
public class KselectsubControl {

    @Resource
    KselectsubService kselectsubService;

    @GetMapping("/WishAll")
    public List<Kselectsub> wishAll()
    {
        return kselectsubService.KSelectAll();
    }
}
